//---------------------------------------------------------------------------

#ifndef place_garageH
#define place_garageH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "FIBDataSet.hpp"
#include "pFIBDataSet.hpp"
#include "util.h"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TFormPlaceGarage : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label2;
        TpFIBDataSet *ds_bus;
        TLabel *Label1;
        TDataSource *DataSourceBus;
        TLabel *Label4;
        TDBEdit *DBEdit3;
        TLabel *Label5;
        TDBEdit *DBEdit4;
        TButton *ButtonSave;
        TButton *Button2;
        TpFIBDataSet *ds_head;
        TFIBBCDField *ds_headID;
        TFIBBCDField *ds_headPARENT_ID_HEAD;
        TFIBDateField *ds_headDATE_DOC;
        TFIBStringField *ds_headNUM_DOC;
        TFIBDateTimeField *ds_headDATE_SAVE_DOC;
        TFIBBCDField *ds_headID_STATE;
        TFIBBCDField *ds_headID_BUS;
        TFIBBCDField *ds_headID_ROUTE;
        TFIBDateTimeField *ds_headDATE_START_STATE;
        TFIBDateTimeField *ds_headDATE_END_STATE;
        TFIBBCDField *ds_headID_TYPE_DOC;
        TFIBDateTimeField *ds_headDATE_START_DOC;
        TFIBDateTimeField *ds_headDATE_END_DOC;
        TFIBBCDField *ds_headID_PERSONAL_MEDIC;
        TFIBBCDField *ds_headID_PERSONAL_DRIVER;
        TFIBBCDField *ds_headID_PERSONAL_MECHANIC;
        TFIBBCDField *ds_busID_BUS;
        TFIBBCDField *ds_busID_MODELS;
        TFIBStringField *ds_busNUM_BODY;
        TFIBStringField *ds_busNAME_MODELS;
        TFIBStringField *ds_busVIN;
        TFIBStringField *ds_busNUM_VR;
        TFIBDateField *ds_busDATE_VR;
        TFIBStringField *ds_busNUM_TS;
        TFIBDateField *ds_busDATE_TS;
        TFIBBCDField *ds_busID_HEAD_STATE;
        TDataSource *DataSourceHead;
        TFIBBCDField *ds_busID_STATE;
        TFIBBCDField *ds_busID_STATE_NULL;
        TFIBBCDField *ds_headMILEAGE;
        TLabel *Label9;
        TDBEdit *DBEdit8;
        TFIBStringField *ds_headNOTE;
        TLabel *Label10;
    TFIBMemoField *ds_headREMARK;
    TDBMemo *DBMemo1;
        TDateTimePicker *date_stop;
        TDateTimePicker *time_stop;
        void __fastcall FormShow(TObject *Sender);
        void __fastcall ButtonSaveClick(TObject *Sender);
        void __fastcall Button2Click(TObject *Sender);
        void __fastcall FormHide(TObject *Sender);
private:	// User declarations
public:		// User declarations
        unsigned int id_state_doc;
        __fastcall TFormPlaceGarage(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFormPlaceGarage *FormPlaceGarage;
//---------------------------------------------------------------------------
#endif
